﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject.Modules;
using Agr.CQRS.Infrastructure.ServiceBus;
using Agr.CQRS.Infrastructure.Orm;
using Agr.CQRS.Domain.Repository;

namespace Agr.CQRS.Infrastructure.DI
{
    public class RegisterDefaultMappings : NinjectModule
    {
        public override void Load()
        {
            Bind<IServiceBus>().To<ServiceBus.ServiceBus>().InSingletonScope();
            Bind<IDomainRepository>().To<DomainRepository>().InSingletonScope();
        }
    }
}
